package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.SellCarBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ISellCarMapper extends BaseMapper<SellCarBean> {
    List<SellCarBean> findByUserId(Integer userId);

    SellCarBean findByProductId(@Param("productId") String productId,
                                @Param("userId") Integer userId);

    Integer getTotalPrice(Integer userId);
}
